package day15;

public class rb extends Thread{
    int i=20;
    @Override
    public void run(){
        while(i<100){
            i+=20;
            System.out.println("兔子跑了"+i+"米");
            if(i==100){
                System.out.println("兔子赢得比赛");
            }
        }
    }
}
